package com.sakura.oj.model.dto.problem;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serial;
import java.io.Serializable;

/**
 * 题目提交请求
 */
@Data
public class ProblemSubmitRequest implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 题目id
     */
    @NotBlank(message = "题目不能为空")
    private Long problemId;
    /**
     * 用户代码
     */
    @NotBlank(message = "代码不能为空")
    private String code;
    /**
     * 代码所用的语言
     */
    @NotBlank(message = "编程语言不能为空")
    private String language;

}
